<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <table border="10">
        <caption>表格标题</caption>
        <tr>
            <th>表头1</th>
            <th>表头2</th>
            <th>表头3</th>
        </tr>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
        </tr>
        <tr>
            <td>4</td>
            <td>5</td>
            <td>6</td>
        </tr>
        
    </table>
                        //分两个单词记忆  cell - padding  / cell- spacing
    <table border="10" cellpadding="10" cellspacing="10" bgcolor="red" background="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=3312543479,2840924628&fm=58&bpow=590&bpoh=563">
            <caption>表格标题</caption>
            <tr>
                <th>表头1</th>
                <th>表头2</th>
                <th>表头3</th>
            </tr>
            <tr>
                <td rowspan="1">1</td>
                <td>2</td>
                <td>3</td>
            </tr>
            <tr>
                <td>4</td>
                <td>5</td>
                <td>6</td>
            </tr>
            
        </table>

        <table border="10">
            <caption>表格标题</caption>
            <tr>
                <th>表头1</th>
                <th>表头2</th>
                <th>表头3</th>
            </tr>
            <tr>
                <td rowspan="2">1</td>      //行合并
                <td colspan="2">2</td>      //列合并
                
            </tr>
            <tr>
                <td>4</td>
                <td >5</td>
                
            </tr>
            
        </table>
</body>
</html>